"""
Author: 'silencesoup' 'silencesoup@outlook.com'
Date: 2024-12-01 16:50:41
LastEditors: 'silencesoup' 'silencesoup@outlook.com'
LastEditTime: 2024-12-01 16:50:45
FilePath: \neimeng_2024\config.py
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
"""

import json
import os
from dotenv import load_dotenv

load_dotenv()

# 数据库查询配置
WATER_DATA_DATABASE_URL = os.getenv(
    "WATER_DATA_DATABASE_URL", "postgresql://postgres:water@10.55.0.102:5432/water"
)
WATER_DATABASE_URL = os.getenv(
    "WATER_DATABASE_URL", "postgresql://postgres:water@10.48.0.84:5432/water"
)
WATER_REPORT_DATABASE_URL = os.getenv(
    "WATER_REPORT_DATABASE_URL",
    "postgresql://postgres:water@10.55.0.102:5432/water_report",
)
WATER_TEAMBITION_DATABASE_URL = os.getenv(
    "WATER_TEAMBITION_DATABASE_URL",
    "postgresql://postgres:water@10.55.0.102:5432/water_teambition",
)

# 数据库配置
WATER_DATA_DATABASE_CONFIG = json.loads(os.getenv("WATER_DATA_DATABASE_CONFIG", {}))
WATER_DATABASE_CONFIG = json.loads(os.getenv("WATER_DATABASE_CONFIG", {}))
WATER_REPORT_DATABASE_CONFIG = json.loads(os.getenv("WATER_REPORT_DATABASE_CONFIG", {}))
WATER_TEAMBITION_DATABASE_CONFIG = json.loads(
    os.getenv("WATER_TEAMBITION_DATABASE_CONFIG", {})
)
